Gallery.views.AlbumCarouselPanel = Ext.extend(Ext.Panel, {
    layout: 'fit',
    initComponent: function() {
        this.dockedItems = [{
            xtype: 'toolbar',
            dock: 'top',
            items: [{
                    itemId: 'backButton',
                    ui: 'back',
                    text: 'Back',
                    iconMask: true
                }, {
                    itemId: 'homeButton',
                    iconCls: 'home',
                    iconMask: true
                }, { xtype: 'spacer' }
            ] 
        }];
        
        this.carousel = new Ext.Carousel({
										 cls: 'carousel2',
            indicator: true,
            defaults: {
                scroll: 'vertical'
            }
        });
        
        this.items = [this.carousel];
        
        Gallery.views.AlbumCarouselPanel.superclass.initComponent.apply(this, arguments);
    }
});

Ext.reg('gallery-albumcarouselpanel', Gallery.views.AlbumCarouselPanel);